import request from '@/utils/iasServiceRequest'

export function batchDeleteBpmsPlu(val) {
  return request({
    url: '/plugs/batchDeleteBpmsPluByIds',
    method: 'post',
    params: { ids: val }
  })
}

export function batchDeleteTraitStore(val) {
  return request({
    url: '/plugs/batchDeleteTraitStoreByIds',
    method: 'post',
    params: { ids: val }
  })
}

export function deleteBpmsPlu(val) {
  return request({
    url: '/plugs/deleteBpmsPluById/' + val,
    method: 'put',
    params: val
  })
}
export function deleteTraitStore(val) {
  return request({
    url: '/plugs/deleteTraitStoreById/' + val,
    method: 'put',
    params: val
  })
}

export function submitPBmsPluDataInfo(val) {
  return request({
    url: '/plugs/updateOrInsertBpmPlu/',
    method: 'post',
    params: val
  })
}
export function submitTraitStoreDataInfo(val) {
  return request({
    url: '/plugs/updateOrInsertTraitStore/',
    method: 'post',
    params: val
  })
}
export function submitBrandIdDataInfo(val) {
  return request({
    url: '/plugs/updateOrInsertBrandId/',
    method: 'post',
    params: val
  })
}
export function batchBrandIdUploadExcel(data) {
  return request({
    url: '/plugs/brandIdUploadExcel',
    headers: { 'Content-Type': 'multipart/form-data' },
    method: 'put',
    timeout: 600000,
    data
  })
}

export function deleteBrandId(val) {
  return request({
    url: '/plugs/deleteBrandIdById/' + val,
    method: 'put',
    params: val
  })
}
export function batchDeleteBrandId(val) {
  return request({
    url: '/plugs/batchDeleteBrandIdByIds',
    method: 'post',
    params: { ids: val }
  })
}
export function submitPbBrandIdDataInfo(val) {
  return request({
    url: '/plugs/updateOrInsertPbBrandId',
    method: 'post',
    params: val
  })
}
export function batchDeletePbBrandId(val) {
  return request({
    url: '/plugs/batchDeletePbBrandIdByIds',
    method: 'post',
    params: { ids: val }
  })
}
export function deletePbBrandId(val) {
  return request({
    url: '/plugs/deletePbBrandIdById/' + val,
    method: 'put',
    params: val
  })
}

export function submitCountryAndCityDataInfo(val) {
  return request({
    url: '/plugs/updateOrInsertCountryAndCity',
    method: 'post',
    params: val
  })
}
export function batchDeleteCountryAndCity(val) {
  return request({
    url: '/plugs/batchDeleteCountryAndCityByIds',
    method: 'post',
    params: { ids: val }
  })
}
export function deleteCountryAndCity(val) {
  return request({
    url: '/plugs/deleteCountryAndCityById/' + val,
    method: 'put',
    params: val
  })
}
export function submitIpNameDataInfo(val) {
  return request({
    url: '/plugs/updateOrInsertIpName',
    method: 'post',
    params: val
  })
}
export function batchDeleteIpName(val) {
  return request({
    url: '/plugs/batchDeleteIpNameByIds',
    method: 'post',
    params: { ids: val }
  })
}
export function deleteIpName(val) {
  return request({
    url: '/plugs/deleteIpNameyById/' + val,
    method: 'put',
    params: val
  })
}
export function submitCounTryOfOriginInfo(val) {
  return request({
    url: '/plugs/updateOrInsertCounTryOfOrigin',
    method: 'post',
    params: val
  })
}
export function batchDeleteCountryOfOrigin(val) {
  return request({
    url: '/plugs/batchDeleteCounTryOfOriginByIds',
    method: 'post',
    params: { ids: val }
  })
}
export function deleteCountryOfOrigin(val) {
  return request({
    url: '/plugs/deleteCounTryOfOriginById/' + val,
    method: 'put',
    params: val
  })
}
export function submitSpecialFinelineList(val) {
  return request({
    url: '/plugs/updateOrInsertSpecialFineline',
    method: 'post',
    params: val
  })
}
export function batchDeleteSpecialFinelineList(val) {
  return request({
    url: '/plugs/batchDeleteSpecialFineline',
    method: 'post',
    params: { ids: val }
  })
}
export function deleteSpecialFinelineList(val) {
  return request({
    url: '/plugs/deleteSpecialFinelineById/' + val,
    method: 'put',
    params: val
  })
}
export function submitHostVnmtInfo(val) {
  return request({
    url: '/plugs/updateOrInsertHostVnmt',
    method: 'post',
    params: val
  })
}
export function batchDeleteHostVnmt(val) {
  return request({
    url: '/plugs/batchDeleteHostVnmt',
    method: 'post',
    params: { ids: val }
  })
}
export function deleteHostVnmt(val) {
  return request({
    url: '/plugs/deleteHostVnmtById/' + val,
    method: 'put',
    params: val
  })
}
export function getDownLoadTemplateUrl(val) {
  return request({
    url: '/plugs/downloadTypeTemplate/' + val,
    method: 'get'
  })
}
export function batchDeleteFreshFoodPiFineline(val) {
  return request({
    url: '/plugs/batchDeleteFreshFoodPiFineline',
    method: 'post',
    params: { ids: val }
  })
}
export function submitFreshFoodPiFinelineDataInfo(val) {
  return request({
    url: '/plugs/updateOrInsertFreshFoodPiFineline',
    method: 'post',
    params: val
  })
}
export function batchFreshFoodPiFinelineExcel(data) {
  return request({
    url: '/plugs/freshFoodPiFinelineUploadExcel',
    headers: { 'Content-Type': 'multipart/form-data' },
    method: 'put',
    timeout: 600000,
    data
  })
}
